#include "HookBase.h"

HookBase::HookBase()
{
	set_call_next_hook(true);
	hook_handle_ = 0;
	//hook_proc_ = NULL;
}

void HookBase::Stop()
{
	if(hook_handle_ == 0)
		return;

	UnhookWindowsHookEx(hook_handle_);
}

bool HookBase::call_next_hook()
{
	return call_next_hook_;
}

void HookBase::set_call_next_hook(bool value)
{
	call_next_hook_ = value;
}